<?php
namespace app\webadmin\validate;

use think\Validate;

class PianyiduCheck extends Validate
{
    protected $rule = [
        'id' => 'require',
        'data1' => 'require',
        'data2'=>'require',
        'data3'=>'require',
        'bzz'=>'require',
        'kzbqdd'=>'require',
    ];

    protected $message = [
        'data1.unique' => '数据1不能为空',
        'data2.unique' => '数据2不能为空',
        'data3.unique' => '数据2不能为空',
        'id.require' => '缺少更新条件',
        'bzz.unique' => '标准值不能为空',
        'kzbqdd.unique' => '不确定度不能为空',
    ];

    protected $scene = [
        'add' => ['data3','data1','data2','bzz','kzbqdd'],
        'edit' => ['id','data3','data1','data2','kzbqdd'],
    ];
}